package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 面料成分
 */
@ApiModel(value = "Composition对象",description = "面料成分信息")
@TableName("mr_composition") // mr_composition
@Data
public class Composition implements Serializable {
    private static final long serialVersionUID = 4260186961274631874L;

    /**
     * 主键，分布式ID
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 面料成分
     */
    @ApiModelProperty(value = "中文名称")
    private String name;

    /**
     * 英文简称
     */
    @ApiModelProperty(value = "英文简称")
    private String english;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

}
